﻿using Ch13CardLib.entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ch13CardLib.exception
{
    public class CardOutOfRangeException : Exception
    {

        private Deck deckContent;

        public Deck DeckContent {
            get { return deckContent; } 
        }

        public CardOutOfRangeException(Deck deckContent) : base("There are only 52 cards in the deck") 
        {
            this.deckContent = deckContent;

        }


    }
}
